<?php 

namespace pmvc\mvc\security\facebook;

use pmvc\mvc\security\AuthenticationProvider;
use pmvc\mvc\Request;
use pmvc\mvc\Response;

class FacebookAuthenticationProvider
	implements AuthenticationProvider {

	public function getAuthentication(Request $request, Response $response) {
		if ($request->hasParameter("signed_request")) {
			return new FacebookAuthentication($request, $response);
		}
		return NULL;
	}

}

?>